package gameAppLayer.stateMachine.strategyState.mapElements;

import java.util.logging.Level;
import java.util.logging.Logger;

import com.jme3.asset.AssetManager;
import com.jme3.scene.Spatial;

import eventManager.EventManager;

import stars.starSystems.StarSystemGenerator;

public class SystemTileGenerator {
	
	private static final Logger logger = Logger.getLogger(SystemTileGenerator.class.getName());
	
	private SystemTileViewBuilder viewFact;
	private Spatial view;
	
	private SystemTileControllerBuilder controllerFact;
	private SystemTileController controller;
	
	public SystemTileController createSystemTile(AssetManager assetManager) {
		
		logger.log(Level.INFO, "Create SystemTile");
		
		viewFact = new SystemTileViewBuilder();
		controllerFact = new SystemTileControllerBuilder();
		
		view = viewFact.createView(assetManager);
		controller = controllerFact.createController(assetManager, systemKey, view);
		
		//MVCLink them
		
		
		
		return controller;
	}

}
